package org.kfive.nova.io.netty.httpserver;

import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;

/**
 * Created by admin on 2017-03-26.
 */
public class HttpServer {

    private Integer port;

    public HttpServer(Integer port){
        this.port = port;
    }

    public void start(){
        EventLoopGroup bossGroup = new NioEventLoopGroup();
        EventLoopGroup workerGroup = new NioEventLoopGroup();
        /*ServerBootstrap server = new ServerBootstrap()
                .group(bossGroup,workerGroup)
                .channel(NioServerSocketChannel.class)
                .handler(new ChannelInitializer<HttpRequest>() {
                    @Override
                    protected void initChannel(HttpRequest ch) throws Exception {

                    }
                });*/
    }
}
